home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / uname.z / uname
Encoding:
Text File  |  2002-10-03  |  4.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. uuuunnnnaaaammmmeeee((((2222))))                                                              uuuunnnnaaaammmmeeee((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _uuuu_nnnn_aaaa_mmmm_eeee - get name of current UNIX system
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_uuuu_tttt_ssss_nnnn_aaaa_mmmm_eeee_...._hhhh_>>>>
  13.  
  14.      _iiii_nnnn_tttt _uuuu_nnnn_aaaa_mmmm_eeee_((((_ssss_tttt_rrrr_uuuu_cccc_tttt _uuuu_tttt_ssss_nnnn_aaaa_mmmm_eeee _****_nnnn_aaaa_mmmm_eeee_))))_;;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _uuuu_nnnn_aaaa_mmmm_eeee stores information identifying the current UNIX system in the
  18.      structure pointed to by _n_a_m_e.
  19.  
  20.      _uuuu_nnnn_aaaa_mmmm_eeee uses the structure _uuuu_tttt_ssss_nnnn_aaaa_mmmm_eeee defined in _<<<<_ssss_yyyy_ssss_////_uuuu_tttt_ssss_nnnn_aaaa_mmmm_eeee_...._hhhh_>>>> whose members
  21.      are:
  22.  
  23.           _cccc_hhhh_aaaa_rrrr _ssss_yyyy_ssss_nnnn_aaaa_mmmm_eeee_[[[[_SSSS_YYYY_SSSS______NNNN_MMMM_LLLL_NNNN_]]]]_;;;;
  24.           _cccc_hhhh_aaaa_rrrr _nnnn_oooo_dddd_eeee_nnnn_aaaa_mmmm_eeee_[[[[_SSSS_YYYY_SSSS______NNNN_MMMM_LLLL_NNNN_]]]]_;;;;
  25.           _cccc_hhhh_aaaa_rrrr _rrrr_eeee_llll_eeee_aaaa_ssss_eeee_[[[[_SSSS_YYYY_SSSS______NNNN_MMMM_LLLL_NNNN_]]]]_;;;;
  26.           _cccc_hhhh_aaaa_rrrr _vvvv_eeee_rrrr_ssss_iiii_oooo_nnnn_[[[[_SSSS_YYYY_SSSS______NNNN_MMMM_LLLL_NNNN_]]]]_;;;;
  27.           _cccc_hhhh_aaaa_rrrr _mmmm_aaaa_cccc_hhhh_iiii_nnnn_eeee_[[[[_SSSS_YYYY_SSSS______NNNN_MMMM_LLLL_NNNN_]]]]_;;;;
  28.  
  29.      _uuuu_nnnn_aaaa_mmmm_eeee returns a null-terminated character string naming the current IRIX
  30.      system in the character array _s_y_s_n_a_m_e.  Similarly, _n_o_d_e_n_a_m_e contains the
  31.      name that the system is known by on a communications network.  _r_e_l_e_a_s_e
  32.      and _v_e_r_s_i_o_n further identify the operating system release and version.
  33.      _r_e_l_e_a_s_e has one of the following forms:  _m._n or _m._n._a where _m is the
  34.      major release number, _n is the minor release number and _a is the
  35.      (optional) maintenance level of the release; e.g.  3333....2222 or 3333....2222....1111.  _v_e_r_s_i_o_n
  36.      contains the date and time that the operating system was generated.  It
  37.      has the form:  _m_m_d_d_h_h_m_m.
  38.  
  39.      _m_a_c_h_i_n_e contains the type of CPU board that the IRIX system is running
  40.      on, e.g.  IIIIPPPP6666.
  41.  
  42.      _EEEE_FFFF_AAAA_UUUU_LLLL_TTTT         _uuuu_nnnn_aaaa_mmmm_eeee fails if _n_a_m_e points to an invalid address.
  43.  
  44. FFFFIIIILLLLEEEESSSS
  45.      Message catalog:  _uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
  46.  
  47. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  48.      _uuuu_nnnn_aaaa_mmmm_eeee(1), _gggg_eeee_tttt_hhhh_oooo_ssss_tttt_nnnn_aaaa_mmmm_eeee(2)
  49.  
  50. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  51.      Upon successful completion, a non-negative value is returned.  Otherwise,
  52.      a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.